<?php

require_once (Chemins::LIBS.'Form.class.php');

if (isset($_REQUEST['controleur']))
{
    $action = 'administration.php?controleur='.$_REQUEST['controleur'].'&action='.$_REQUEST['action'];
}
else
{
    $action = 'administration.php';
}

$form = new Form('formConnexion', $action, 'post', 'Connexion');

$form->debutFieldSet();

$form->addInput(InputType::TEXT, 'pseudo', 'Pseudo : ', true);

$form->addInput(InputType::PASSWORD, 'passe', 'Mot de Passe :', false);

$form->addBR();

$form->addInput(InputType::SUBMIT, 'connexion', 'Connexion', false);

$form->finFieldSet();

echo $form;